package t2;

import javax.security.auth.login.Configuration;
import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/4/9 14:28
 */
public class Test {
    public static void main(String[] args) {

    Scanner scanner=new Scanner(System.in);
    String name=scanner.nextLine();
        System.out.println("请输入密码");
        String password=scanner.nextLine();
        System.out.println("请输入确认密码");
        String confirmPassword=scanner.nextLine();
        while (!confirmPassword.equals(password)){
            System.out.println("出入不一致");
            confirmPassword=scanner.nextLine();
        }
        System.out.println("请输入手机号");
        String phone=scanner.nextLine();
        while (!(phone.startsWith("13")||phone.startsWith("15")||phone.startsWith("17")||phone.startsWith("18")||phone.length()!=11)){
            System.out.println("不符合规则");
            phone=scanner.nextLine();
        }
        System.out.println("请输入邮箱");
        String email=scanner.nextLine();
        while (!email.contains("@")){
            System.out.println("邮箱得包含@");
            email=scanner.nextLine();
        }


    }

    }
